-
Notifications
You must be signed in to change notification settings - Fork 3.4k
HBASE-29541 Removing unnecessary sanitization in throttle metrics #7238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
HBASE-29541 Removing unnecessary sanitization in throttle metrics #7238
Conversation
|
This looks good to me, cc @rmdmattingly @charlesconnell, any chance you could take a look at this? For context, we don't do this type of sanitation anywhere else in the code, and were worried of any potential overhead |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR removes unnecessary sanitization and null handling from throttle metrics reporting in HBase. The changes simplify the metrics naming by eliminating character replacement for JMX compatibility and removing null value handling since those values should never be null in practice.
Key changes:
- Removed sanitization logic that replaced JMX-problematic characters with underscores
- Eliminated null handling that converted null values to "unknown"
- Updated tests to remove coverage for the removed functionality
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| MetricsThrottleExceptions.java | Removed sanitizeMetricName method and simplified qualifyThrottleMetric to use raw user/table names |
| TestMetricsThrottleExceptions.java | Removed tests for metric name sanitization and null handling, updated expected metric name format |
| TestMetricsRegionServer.java | Removed integration tests for sanitization and null handling scenarios |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Removes some unnecessary sanitization we were doing in the throttle metrics reporting. Also, removes the null handling as those values should never be null.